}
#[test]
-fn fresh_builds_possible_with_overrides() {
+fn fresh_builds_possible_with_multiple_metadata_overrides() {
// The bug is non-deterministic. Sometimes you can get a fresh build
let target = rustc_host();
let p = project("foo")
.file("src/lib.rs", "")
.file(".cargo/config", &format!("
[target.{}.foo]
- rustc-link-lib = [\"foo\"]
- rustc-cfg=[\"ossl102\"]
- version = \"102\"
- conf = \"\"
+ a = \"\"
+ b = \"\"
+ c = \"\"
+ d = \"\"
+ e = \"\"
", target))
.file("build.rs", "");
assert_that(p.cargo_process("build").arg("-v"),
execs().with_status(0).with_stderr("\
[COMPILING] foo v0.5.0 ([..]
-[RUNNING] `rustc [..] -l foo`
+[RUNNING] `rustc [..]`
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
"));
sleep_ms(2000);
- assert_that(p.cargo("build").arg("-v"),
+ assert_that(p.cargo("build").arg("-v").env("RUST_LOG", "cargo::ops::cargo_rustc::fingerprint=info"),
execs().with_status(0).with_stderr("\
[FRESH] foo v0.5.0 ([..])
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]